from google.appengine.ext import db
from google.appengine.api import users

class UserActions(db.Model):
    email = db.UserProperty()
    nickname = db.StringProperty()
    actions = db.StringProperty()
    updated = db.DateTimeProperty(auto_now_add=True)

class Photos(db.Model):
	email = db.StringProperty()
	nickname = db.StringProperty()
	profile = db.BlobProperty()
	thumbnail = db.BlobProperty()
	updated = db.DateTimeProperty(auto_now_add=True)

class Friends(db.Model):
	email = db.UserProperty()
	friendEmail = db.EmailProperty()
	friendNickname = db.StringProperty()
	approved = db.IntegerProperty()
	added = db.DateTimeProperty(auto_now_add=True)

class UserPreferences(db.Model):
    email = db.UserProperty()
    nickname = db.StringProperty()
    updated = db.DateTimeProperty(auto_now_add=True)

class EmailActionUpdate(db.Model):
    email = db.StringProperty()
    nickname = db.StringProperty()
    passwd = db.StringProperty()
    updated = db.DateTimeProperty(auto_now_add=True)